package com.xnew.common.base;

import com.xnew.common.response.status.StatusCode;

/**
 * @ClassName StatusInfo
 * @Description TODO
 * @Author tinx
 * @Date 2019/3/28 0028 下午 2:49
 * @Version 1.0
 **/
public class StatusInfo implements StatusCode {

    private int code;
    private String msg;
    private String name;

    public StatusInfo(){}
    public StatusInfo(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public StatusInfo(int code,String msg,String name){
        this.code = code;
        this.msg = msg;
        this.name = name;
    }
    @Override
    public String getModuleName() {
        return "状态信息";
    }

    @Override
    public int getOrder() {
        return 10;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public String getName() {
        return name;
    }
}
